package cn.tedu.csmall.passport.pojo.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class RoleListVO implements Serializable {
    @NotNull(message = "添加失败，角色ID不能为空！")
    @ApiModelProperty(value = "角色ID",required = true,example = "1")
    private Long id;
    @NotNull(message = "添加失败，角色名称不能为空！")
    @ApiModelProperty(value = "角色名称",required = true,example = "终极管理员")
    private String name;
    
}
